package code.google.jcontainer.test.constraint;

import code.google.jcontainer.annotation.Resolve;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 * @create 2009-12-10 11:27:30
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Resolve(when = Resolve.WHEN.BEFORE_METHOD, resolverClass = IntegerConstraintAnnotationResolver.class)
public @interface IntegerConstraint {

    int min() default Integer.MIN_VALUE;

    int max() default Integer.MAX_VALUE;
}
